//
//  TDBindBankCardViewController.h
//  TFB
//
//  Created by Nothing on 15/4/13.
//  Copyright (c) 2015年 TD. All rights reserved.
//

#import "TDBaseViewController.h"
#import "TDBankCardInfo.h"
#import "ZSYPopoverListView.h"
#import "TDBankNameInfo.h"
typedef enum {
    kBandingBankCard,//绑定银行卡
    kModificationBankCard,//修改银行
    kbangDingXinYongCard,//绑定信用卡
    kupXinYongCard//修改信用卡
} bankCardState;

@interface TDBindBankCardViewController : TDBaseViewController<UIGestureRecognizerDelegate, UINavigationBarDelegate, UIImagePickerControllerDelegate, UINavigationControllerDelegate,UITextFieldDelegate,UIActionSheetDelegate,ZSYPopoverListDatasource, ZSYPopoverListDelegate>
@property (weak, nonatomic) IBOutlet UIImageView *cardFrontImageView;
@property (weak, nonatomic) IBOutlet UIImageView *cardBackImageView;
@property (weak, nonatomic) IBOutlet UITextField *cardNumTF;
@property (weak, nonatomic) IBOutlet UITextField *lineNumTF;

- (IBAction)commitBtnClick:(id)sender;

@property (weak, nonatomic) IBOutlet UIButton *commitBtn;

@property (strong, nonatomic) IBOutlet UIButton *TRButton;
@property (strong, nonatomic) IBOutlet UIButton *bankNameButton;
@property (strong, nonatomic) IBOutlet UIButton *zhiHangButton;


- (IBAction)clickTRButton:(UIButton *)sender;
@property (strong, nonatomic) IBOutlet UIScrollView *BGScrollView;
@property (strong, nonatomic) IBOutlet UIImageView *bankNumImageV;
@property (strong, nonatomic) IBOutlet UIImageView *lineNumImageV;
@property (strong, nonatomic) IBOutlet UIImageView *AreaImageV;
@property (strong, nonatomic) IBOutlet UIImageView *zhiHangImageV;

@property (strong, nonatomic) IBOutlet UITextField *OldCardNumber;

@property (strong, nonatomic) IBOutlet UIView *BGview;

@property (nonatomic,assign) bankCardState  state;
@property (nonatomic, strong) TDBankCardInfo *bankCardInfo;
@property (strong, nonatomic) IBOutlet UIImageView *OldBankImageV;

-(void)getBankNameInfo:(TDBankNameInfo *)info;
@end
